package com.caimiao.miao;

import android.app.Application;
import android.content.Context;

import com.caimiao.miao.library.push.PushControl;
import com.caimiao.miao.library.utils.tip.LogUtil;

public class MiaoApplication extends Application {
    private static Context mContext;
    public static final boolean isDebug = true;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();
        initPush();
        LogUtil.setCanPrint(isDebug);
    }

    private void initPush() {
        PushControl.getInstance().init(this);
    }

    public static Context getContext() {
        return mContext;
    }

}
